//
//  QuotaHeaderCollectionReusableView.swift
//  YUANSHI
//
//  Created by pro on 2020/1/9.
//  Copyright © 2020 wangbin. All rights reserved.
//

import UIKit

class QuotaHeaderCollectionReusableView: UICollectionReusableView {
    
     var titLabel:UILabel = {
           
            let label = UILabel()
            label.textColor = UIColor.purple
            return label
        }()
        
        
        override init(frame: CGRect) {
            super.init(frame: frame)
            setUI()
        }
        required init?(coder: NSCoder) {
            fatalError("init(coder:) has not been implemented")
        }

        private func setUI(){
            
            self.addSubview(self.titLabel)
            self.titLabel.snp.makeConstraints { (make) in
                make.center.equalToSuperview()
            }
            
        }
        
        var conStr : String?  {
            didSet{
    //            guard let str = conStr else {
    //                return
    //            }
                self.titLabel.text = conStr
            }
            
        }
        
    
}
